Group by Drop Zone

{ groupBy }

Group the chunk data by specific drop zone.

Method
groupBy(
chunkData: number[][],
dropZoneType: DropZoneType
): { [key: string]: { members: number[]; dataPoints: number[][] } }

Arguments

chunkData: number [][]

  • The whole chunk data.

dataPoint: DropZoneType

  • The dropZoneType to group by.

Returns

string

  • A map containing grouped datapoints.

number

  • The map key representing the caption of the grouped dropZoneType.

number

  • The map value containing the keys of the grouped dropZoneType, as well as all data points in the group.